﻿using System;

class GSM
{
    private static Battery battery = new Battery("iPhone");
    private static Display display = new Display(5,5);

    private string model=null;
    private string manufacturer=null;
    private int price;
    private string owner=null;
    private static string iPhone4S = null;


    public string Model
    {
        get { return this.model; }
        set{this.model=value;}
    }
    public string Manufacturer
    {
        get { return this.manufacturer; }
        set { this.manufacturer = value; }
    }
    public int Price
    {
        get { return this.price;}
        set { this.price = value; }
    }
    public string Owner
    {
        get { return this.owner; }
        set{this.owner=value;}
    }
    public static string IPhone4S
    {
        get { return iPhone4S; }
        set{iPhone4S=value;}
    }

    public GSM(string model, string manufacturer)
    {
        this.model = model;
        this.manufacturer = manufacturer;
        this.price = 0;
        this.owner = null;
        iPhone4S = null;
    }
    public GSM(string model, string manufacturer, int price)
        :this(model,manufacturer)
    {
        this.price = price;
    }
    public GSM(string model, string manufacturer, int price, string owner)
        : this(model, manufacturer, price)
    {
        this.owner = owner;
    }

    public override string ToString()
    {
        return this.model + " " + this.manufacturer + " " + this.price + " " + this.owner;
    } 
}